home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
filutil
/
remove.zip
/
REMOVE.DOC
next >
Wrap
Text File
|
1995-01-08
|
5KB
|
136 lines
***********************
* REMOVE Version 2.2 *
***********************
> Coded by Iceman <
1. What is REMOVE ?
-------------------
Do you know this : You just got a formatted textfile from the UseNet,
an e-mail message, or even a program documentation file like this. Now you
maybe want to place it into your word processor - and the result is a mess.
The reason why is simple : In almost all of this files a carriage return
($0d) and a linefeed ($0a) (or sometimes a linefeed alone) indicate the end
of each line. The implication of this is that no text program will be able
to auto-wrap it into it's own linewidth. Now you maybe can start to remove
these linebreaks by hand, but if your file contains about 500 lines and
more, this is going to be a lot of a work.
This is were you can use REMOVE. It was designed for replacing the line-
breaks of such formatted textfiles with blanks. Up to this, it can keep the
general layout of most texts intact. It is fairly easy to use and works fully
automatically.
Especially if you are often using the Internet services (UseNet etc.), this
program can save you a lot of work.
2. How do I use REMOVE ?
------------------------
The syntax of REMOVE is simple:
REMOVE [ source file] [ destination file ] <-breaks> <-spaces>
All you have to do is to enter a command in the form you can find above at
the DOS-prompt.
If you use the '-breaks' switch you can advise REMOVE to exclude some of the
linebreaks from beeing deleted or replaced. This may be useful if the general
layout of a textfile should be maintained. That means that the following line-
breaks will NOT be replaced:
(1) linebreaks that are followed by either a blank or a tabstop, that may mark
the beginning of a new textblock;
[Note: By default, this tabstops will be converted to blanks. To disable
this, you have to use the '-tabs' switch !]
(2) linebreaks followed by another linebreak (this means, that all empty lines
of the source file will appear in the converted file, too).
This will handle most of the common formatted textfiles.
NEW: Since version 2.2, you can replace every sequence containing multiple
blanks with only one blank by using the '-spaces' switch. You should consider
if this option is useful for your needs or not - this depends on your file.
For example, it is good for handling most UseNet- and UNIX-files, but not for
texts like this one (the "ICE" sign at the bottom would be spoiled etc.).
NEW: If you don't want to convert all tabstops to blanks (default), you
should add the '-tabs' switch to the command line.
If you have done all this, REMOVE will start to work. This may take some time,
especially if you want to convert very large files of 1 MB and more.
!! Note : !!
It is nearly impossible to detect every detail of complex layouts. That means,
that there will be always some few files, that may not look exactly as you
want. Please don't blame me if this happens - watching the whole document on a
screen and analyzing it byte-by-byte are two different things !
3. Some quick examples
----------------------
(1) remove remove.doc remove.new -breaks
Correct, the textblocks will stay separated.
(2) remove remove.doc remove.new
Correct, but ALL linebreaks will be removed.
(3) remove c:\tools\remove.doc c:\tools\remove.new -breaks -spaces
Correct, as (1), but in the converted file multiple blanks will appear
as only one blank.
(4) remove remove.doc -breaks
Wrong, you MUST specify a destination file.
(5) remove remove.doc remove.doc
Wrong, the files MUST have different names.
4. Some credits and greetings
-----------------------------
Well, strictly speaking this isn't the kind of a program where you can
expect a huge list of credits, but because there are some guys that want to
be mentioned here, I'm going to do them a favor, so here we go :
Hellos go to Major Tom, Dirk, Mario and Basti (What the hell would I do
without you lazy suckers ?), Thomas P. from R. (Harz) and everybody who likes
this little program. I would also like to thank everybody who contacted me
when I first posted the previous version.
5. Distribution
---------------
You may distribute this program freely, I even WANT you to give it away
to your friends or whoever you want, AS LONG AS YOU ENCLOSE THIS FILE !!
By the way, if you have any comments or suggestions or some ideas, I
would appreciate if you would send me some mail ...
And that's the end of this silly file ....
_/ _/_/_/ _/_/_/_/
_/ _/ _/
_/ _/ _/_/_/ e-mail: wi60882@rz.tu-ilmenau.de
_/ _/ _/
_/ _/_/_/ _/_/_/_/